Repository navigation
fix(abi-gate): fail closed when the scan inspected no ELF; install file(1) in manylinux - #1574
TimeToBuildBob wants to merge 4 commits into
Conversation
…le(1) in manylinux The glibc 2.28 floor gate has been passing vacuously: on the 2026-11-24 scheduled master run both the manylinux zip and AppImage reported "ELFs with GLIBC refs: 0 / 0 files scanned" and then PASS. ELF discovery goes through file(1) with stderr discarded, and the manylinux container does not install it, so nothing was ever scanned. scan_elfs now exits 2 when no ELF with GLIBC references was inspected, and the manylinux job installs file and binutils. Git-Session-Id: 686b7c0e-aee4-4c6e-bbb4-78e915e2bb44
Review guide (auto-posted)Structured warm-up for reviewers — what changed, what to run, where to look. Key files
Suggested verification
Known risks / watch points
Suggested review focus
Generated by |
[Medium impact] Safe to merge based on the reviewed changes. SummaryThe manylinux release gate now fails instead of reporting
Reviews (4) · Last reviewed commit: "test(abi-gate): fail when the real reade..." · Reviewed by Greptile |
Git-Session-Id: 8d5891e7-e575-5afb-b089-b1e978e13723
This comment has been minimized.
This comment has been minimized.
🤖 AI code reviewThe PR changes Safe to merge — no P0/P1 findingsConfidence 5/5 ✅ No findings. The diff looks correct to me on this pass. Files changed (3) — the diff as I read it
Previous review passes
Reviewed Maintainer commands
|
Git-Session-Id: bb2dcf34-a2f6-4d48-9c9a-0a3159624584
This comment has been minimized.
This comment has been minimized.
Git-Session-Id: bb2dcf34-a2f6-4d48-9c9a-0a3159624584
|
@greptileai review |
The glibc 2.28 floor gate has been passing without scanning anything. On today's scheduled master run (job
138189175609,build-qt-manylinux-2-28), the ABI gate printed:scan_elfsfinds ELFs withfind … -exec file {} + 2>/dev/null | grep ': ELF 'inside a process substitution. The manylinux container never installsfile(1), and the error is discarded, so the loop runs zero times. A brokenreadelfis masked the same way (|| true).Fix
scan_elfsexits 2 when no ELF with GLIBC version references was inspected. Every real bundle has one, so a scan that found none proves nothing.fileandbinutils.Test:
scripts/tests/test_abi_gate.pycovers three cases: an archive with no ELFs, a brokenfile, and a brokenreadelf. All three printed PASS on master and fail closed with this change. A fourth test checks that a real binary is actually inspected. The file is added to the existing host-ABI test step.Heads-up:
build-qt-manylinux-2-28is skipped onpull_request, so thednfchange and the first real floor scan only run after merge, on the next push or scheduled run. If that run goes red withVIOLATIONlines, the gate is catching a real glibc>2.28 symbol in the bundle. If it goes red with the newERROR: no ELF…line,file/readelfstill aren't usable in the container. Either way it was silently green before.Found in a packaging-scripts review; the reproduction was independently verified.